package test0;

/**
 * @author cjx
 * @create 2024/06/04
 * @description
 */
public class Cat extends Animal {
    public Cat() {
    }
    public Cat(String name, int age) {
        super.setName(name);
        super.setAge(age);
    }
    @Override
    public void eat() {
        System.out.println(this.getName() + "吃鱼");
    }
    public void eat(String something) {
        System.out.println(this.getName() + something);
    }
    public void sleep() {
        System.out.println("猫睡觉");
    }
}
